package cs2013;

import java.io.File;
import java.io.IOException;
import java.util.Scanner;

public class Recommender_online {
	static File file;
	public static void main(String[] args) throws IOException {
		
		Sim_table st = new Sim_table();
		//Movie movie = new Movie();
		MoviesHandle mdHandle = new MoviesHandle();
		file = new File("src/cs2013/sim_table.txt");
		st.read(file);
		
		file = new File("src/cs2013/movies.dat");
		mdHandle.read(file);

		System.out.println("Input MovieId:");
		Scanner scanner=new Scanner(System.in);
		int mvid = scanner.nextInt();
		st.getValueById(mvid);
		System.out.println("Input Movie");
		System.out.println(mdHandle.map.get(mvid));
		System.out.println("Recommander movies");
		st.getValueById(mvid);
		st.getMovieByChildMovieId(st.tmpArrayList);
	}

}
